#include "globalvariables.h"



//QQueue<QByteArray> d_queue;
QVector<Target_Info_Table>searchDate;

QQueue<QPrinter*>printer_queue;

QMap<quint8,quint8> StateOfTargetMap;

QMap<quint8,double> VoltageOfTargetMap;

QMap<int,QTimer*> TimeMap;

bool Repeated = false;

QMap<int,int> RecordSequenceMap;

QMap<int,QVector<BulletPoint>> Container;





QMap<int,int> TargetBelongTOUserMap;

double SoundSpeed = 0;

QMap<QString,QTcpSocket*> ConnMap;

// StateOfTargetMapRwLock 靶标状态map读写锁
QReadWriteLock StateOfTargetMapRwLock;

// VoltageOfTarget 连接靶标的实时电压
QReadWriteLock VoltageOfTargetRWLock;

// TimeMapRWLock 定时器锁
QReadWriteLock TimeMapRWLock;

QReadWriteLock TargetBelongToUserRWLock;

TargetInfo TargetConfig;



InitConfig initConfig;

QString CurDate = initConfig.getStringValue("DateNumber","Date");

int CurGroupNumber =  initConfig.getIntValue("DateNumber","GroupNumber");

unsigned int SystemID = initConfig.getIntValue("DateNumber","SystemID");

//传感器位置
double A1X = initConfig.getDoubleValue("Position","A1-x");
double A1Y = initConfig.getDoubleValue("Position","A1-y");
double A2X = initConfig.getDoubleValue("Position","A2-x");
double A2Y = initConfig.getDoubleValue("Position","A2-y");
double A3X = initConfig.getDoubleValue("Position","A3-x");
double A3Y = initConfig.getDoubleValue("Position","A3-y");


